package com.dxp.operation.core;

/**
 * @author gaohui
 */
public class OperationLogContextHolder {

    private static ThreadLocal<OperationLog> THREAD_LOCAL = new ThreadLocal<>();

    public static void put(OperationLog operationLog) {
        THREAD_LOCAL.set(operationLog);
    }

    public static OperationLog get() {
        return THREAD_LOCAL.get();
    }

    public static void clean() {
        THREAD_LOCAL.remove();
    }

}
